const mongoose = require("../../../db/db");

/**
 * @description 管理系统 客户列表模型
 */
const Schema = mongoose.Schema({
    id: {
        type: String,
    },
    //创建日期
    createDate: {
        type: String,
    },
    
    //custName
    custName: {
        type: String,
        require: true
    },
    //custId
    custId: {
        type: String,
        require: true,
        unique: true
    },
    //custEmail
    custEmail: {
        type: String,
        require: true,
        unique: true,
    },
    //phoneNo
    phoneNo: {
        type: String,
        require: true,
        unique: true,
    },
    //排序
    sort: {
        type: Number,
    },
    //状态
    status: {
        type: String,
        default: "1"
    },
    // 是否已经逻辑删除标记
    deleteFlag: {
        type: Boolean,
        default: false
    }
})
const MAIN_TAB_BRAND = mongoose.model("MAIN_TAB_CUSTOMER", Schema);
module.exports = MAIN_TAB_BRAND;